package cn.appsys.dao.deve;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.appsys.pojo.AppInfo;

public interface AppInfoDao {
	public List<AppInfo> getAllBy(@Param("name")String softwareName,@Param("status")Integer status,
			@Param("flat")Integer flatformId,@Param("l3")Integer categoryLevel3,
			@Param("l1")Integer categoryLevel1,@Param("l2")Integer categoryLevel2,
			@Param("index")Integer index);
	public int getAllCount(@Param("name")String softwareName,@Param("status")Integer status,
			@Param("flat")Integer flatformId,@Param("l3")Integer categoryLevel3,
			@Param("l1")Integer categoryLevel1,@Param("l2")Integer categoryLevel2);
	
	public int getByAPKName(String apkName);
	
	public int addAppInfo(AppInfo app);
	
	public AppInfo getById(String id);
	
	public int upAppInfo(AppInfo app);
	
	public int delFile(String id);
	
	public int upAppVersion(String id);
	
	public int delApp(String id);
	
	public int upStart(@Param("id")String id,@Param("flag")String flag);
}
